<template>
  <div id="home-view">
    <div class="content">
      请先登录
    </div>

  </div>
</template>

<script lang="ts" setup>
  import { useLoginUserStore } from '@/store/useLoginUserStore'
  import { useRouter } from 'vue-router'
  const loginUserStore = useLoginUserStore()
  const router = useRouter()
  setTimeout(() => {
    if (!loginUserStore.loginStatus) {
      router.push({
        path: '/login/log'
      })
    } else {
      router.push({
        path: '/chat'
      })
    }
  }, 1000)

</script>

<style lang="less" scoped>
  #home-view {
    // margin-top: 50px;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;

    .content {
      width: 30%;
      height: 50%;
      background-color: rgba(255, 255, 255, 0.463);
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 30px;
    }

  }



</style>
